<#include "../head.ftl">
<div class="page_title">销售机会管理&nbsp; &gt; 指派销售机会</div>
<div class="button_bar">
    <button class="common_button" onclick="help('');">帮助</button>
    <button class="common_button" onclick="window.history.go(-1)">返回</button>
    <button class="common_button" onclick="document.forms[0].submit()">保存</button>
</div>
<form action="${base}/refer/dispatch" method="post">
    <input type="hidden" name="id" value="${refer.id}"/>
    <table class="query_form_table">
        <tr>
            <th>编号</th>
            <td>${refer.id}</td>
            <th>机会来源</th>
            <td>${refer.opportunity}</td>
        </tr>
        <tr>
            <th>客户名称</th>
            <td>${refer.name}</td>
            <th>成功机率（%）</th>
            <td>&nbsp;${refer.probability}</td>
        </tr>
        <tr>
            <th>概要</th>
            <td colspan="3">${refer.outline}</td>
        </tr>
        <tr>
            <th>联系人</th>
            <td>${refer.contacts}</td>
            <th>联系人电话</th>
            <td>${refer.telephone}</td>
        </tr>
        <tr>
            <th>机会描述</th>
            <td colspan="3">${refer.describes}</td>
        </tr>
        <tr>
            <th>创建人</th>
            <td>${refer.createuser.name}</td>
            <th>创建时间</th>
            <td>${refer.createtime?string("yyyy-MM-dd hh:mm:ss")}</td>
        </tr>
    </table>
    <br />
    <table class="query_form_table" id="table1">
        <tr>
            <th>指派给</th>
            <td>
                <select name="appointUser.id">
                     <option value="">请选择...</option>
                        <#list userList as user>
					    <option value="${user.id}">${user.name}</option>
                        </#list>
                </select>
                <span class="red_star">*</span></td>
            <th>指派时间</th>
            <td>

                    <input type="text" id="t2" name="appointtime" value=""/>
                    <script>
                        setCurTime('t2');
                    </script>
                <span class="red_star">*</span>
            </td>
        </tr>
    </table>
</form>

</body>
</html>